
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QProcess>
#include<QStringList>


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QProcess * Pro1 = new QProcess(this);
    Pro1->setProgram("cmd");
    connect(ui->B1,&QToolButton::clicked,Pro1,[=](){


        Pro1->start();
    });
}

MainWindow::~MainWindow()
{
    delete ui;
}


